<%--
  Created by IntelliJ IDEA.
  User: 佐佑
  Date: 2020/7/21
  Time: 11:09
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<html>
<head>
    <title>查看学生类</title>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/css/bootstrap.css">
    <style>
        td{
            text-align: center;
        }
    </style>
</head>
<body>
    <table class="table table-bordered table-hover" style="width: 60%; margin:auto">
        <tr class="success">
            <td>编号</td>
            <td>姓名</td>
            <td>密码</td>
            <td>操作</td>
        </tr>

        <c:forEach items="${studens}" var="student" varStatus="vs">
            <tr>
                <td>${vs.count}</td>
                <td>${student.username}</td>
                <td>${student.password}</td>
                <td><a href="${pageContext.request.contextPath}/studentServlet?method=deleteStudent&delete_id=${student.id}">删除</a>
                    <a href="${pageContext.request.contextPath}/studentServlet?method=findUpdateStudent&update_id=${student.id}">修改</a>
                </td>
            </tr>
            <br>
        </c:forEach>
    </table>
</body>
</html>
